﻿<UserControl
    x:Class="EString.Controls.CustomNUD"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:EString.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:converters="using:EString.Converters" mc:Ignorable="d"
    d:DesignHeight="38"
    d:DesignWidth="202">
    <UserControl.Resources>


        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="ms-appx:///Symmetry/Themes/Generic.xaml"/>
            </ResourceDictionary.MergedDictionaries>

            <converters:NANConverter x:Key="nanConverter"/>


        </ResourceDictionary>

    </UserControl.Resources>
    <Border>
        <VisualStateManager.VisualStateGroups>
            <VisualStateGroup x:Name="VisualStateGroup">
                <VisualStateGroup.Transitions>
                    <VisualTransition/>
                </VisualStateGroup.Transitions>
                <VisualState x:Name="Normal"/>
                <VisualState x:Name="Null">
                    <Storyboard>
                        <DoubleAnimation Duration="0" To="0.65" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="nulltext" d:IsOptimized="True"/>
                    </Storyboard>
                </VisualState>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>
        <Grid x:Name="LayoutRoot">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <!--<toolkit:ButtonSpinner d:LayoutOverrides="Width, Height" Grid.Column="1" 
				Spin="ButtonSpinner_Spin"   />-->
            <TextBox x:ConnectionId='1' x:Name="txtContent" TextWrapping="Wrap" Grid.Column="1"
				                                                     
				Text="" d:LayoutOverrides="Height" TextAlignment="Right"
				Padding="2,2,4,2"                                                                                     />
            <TextBlock IsHitTestVisible="False" x:Name="nulltext" Opacity="0" TextWrapping="Wrap" Text="NULL" Grid.Column="1"
                       d:LayoutOverrides="Width, Height" HorizontalAlignment="Right" VerticalAlignment="Center" FontStyle="Italic" Margin="0,0,2,0" Foreground="#FF8B8B8B"/>
            <StackPanel Orientation="Horizontal" d:LayoutOverrides="Height">
            	<Button x:ConnectionId='2' x:Name="btnup" Content="up" VerticalAlignment="Stretch" Width="45"                       FontSize="9.333"                        />
            	<Button x:ConnectionId='3' x:Name="btnDown" Content="dn" VerticalAlignment="Stretch"                         Width="45" FontSize="9.333"                          />
            </StackPanel>
        </Grid>
    </Border>
</UserControl>

